import 'package:flutter/material.dart';
import 'package:color_dart/RgbaColor.dart';
import 'package:im_flutter_sdk_example/components/labels/index.dart';
import 'package:im_flutter_sdk_example/utils/global.dart';

class MainTitle extends StatelessWidget {
  final String title;

  const MainTitle({Key key, this.title}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Container(
      margin: EdgeInsets.only(top: 7),
      padding: EdgeInsets.fromLTRB(5, 8, 16, 12),
      decoration: BoxDecoration(
          color: Colors.white,
          border: Border(
              bottom: BorderSide(width: 1, color: rgba(235, 235, 235, 1)))),
      width: G.screenWidth(),
      child: Column(
        crossAxisAlignment: CrossAxisAlignment.start,
        children: [
          LabelTitle(
            title: '$title',
          )
        ],
      ),
    );
  }
}
